Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(tasks): provide a universal abstract layer for task managing #47

Closed
wants to merge 21 commits into from

Conversation

greenhat616
Copy link
Collaborator

@greenhat616 greenhat616 commented Dec 3, 2023

Close #43
移植并改进 zzzgydi/clash-verge@e0d2620

  • 重新实现基于分钟的清理任务

  • Task 管理

    • 基础 API
    • 事件管理
    • 状态持久化
    • 重写 profiles task
  • 实现前端设置页面

@greenhat616
Copy link
Collaborator Author

用了比较 hack 的方式,来允许 task 管理器能添加自己的上下文。

 use anyhow::Result;
 #[derive(Clone)]
 pub struct HelloJob {}
 impl JobExecutor for HelloJob {
     fn execute(&self) -> Result<()> {
        println!("hello");
       Ok(())
    }
}

@greenhat616 greenhat616 changed the title feat(task): add clear_logs task refactor(tasks): provide a universal abstract layer for task managing Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant